﻿using System.Reflection;
using Xioa_UI.Attribute;
using Xioa_UI.Interface;

namespace Xioa_UI.Domain;

/// <summary>
/// 替代嵌套
/// </summary>
/// <typeparam name="TWork">参数类型</typeparam>
/// <typeparam name="TResult">返回结果</typeparam>
public interface IAlternateNesting<in TWork, out TResult> : IGetRunValue<TWork>
{
    public TResult? DoWorkResult();

    public TResult? DoWorkResult(TWork data);
}

/// <summary>
/// 替代嵌套
/// </summary>
/// <typeparam name="TWork">参数类型</typeparam>
public interface IAlternateNesting<in TWork> : IGetRunValue<TWork>
{
    public void DoWork();

    public void DoWork(TWork data);
}